package day04;

/**
 * 分支结构switch...case的演示
 */
public class SwitchCase {
    public static void main(String[] args) {

        int num =2;
        switch(num){
            case 1:
                System.out.println(111);
                break;//跳出结束，
            case 2:
                System.out.println(222);
                break;
            case 3:
                System.out.println(333);
                break;
            default://所有case未匹配时执行
                System.out.println(666);
        }


    }
}
